package cn.doitedu.udfs;

import ch.hsr.geohash.GeoHash;
import org.apache.flink.table.functions.ScalarFunction;

public class GpsToGeohashFunction extends ScalarFunction {


    public String eval(Double lat,Double lng) {

        return GeoHash.geoHashStringWithCharacterPrecision(lat,lng,6);

    }


}
